home *** CD-ROM | disk | FTP | other *** search
/ TOS Silver 2000 / TOS Silver 2000.iso / musik / MIDIFP21 / SOURCES / MIDI_PRT / INFO / INFO.PIF < prev   
Encoding:
Text File  |  1996-08-03  |  2.6 KB  |  81 lines

  1. /**************************************************************
  2. *
  3. *                INFO.PIF
  4. *
  5. **************************************************************/
  6.  
  7. /*** init values for constructor ***/
  8.  
  9. typedef struct 
  10. {
  11.     CICONBLK *icon ;
  12.     char *filename ;            /* for icon text and info line */
  13.     unsigned char *RAM_file ;   /* pointer to MIDI file */
  14.     long filesize ;             /* size of original MIDI file */
  15. INFO_INIT ;
  16.  
  17.  
  18. /*******************************************************************
  19. */
  20.     Awindow *INFO_constructor(INFO_INIT *) ;
  21. /*
  22. * constructor of the INFO object. It
  23. * constructs an object instance of the INFO object containing
  24. * ACS object and own data instances.
  25. * OUTPUT:  info window icon placed on screen,
  26. *          header chunk data out of MIDI file entered into 
  27. *          window work object
  28. * RETURN:  errors: NULL or -if successfull- ACS-window pointer,
  29. *          which will be used as handle for the object instance
  30. *******************************************************************/
  31.  
  32. /*******************************************************************
  33. */
  34.     void INFO_destructor(Awindow *) ;
  35. /*
  36. * "INFO_destructor" is the destructor of the INFO object. It
  37. * frees all memory used by ACS and own data instances.
  38. *******************************************************************/
  39.  
  40. /*******************************************************************
  41. */
  42.     void set_transformed_size(Awindow *window, long transformed_size) ;
  43. /* 
  44. * INPUT:   window:            pointer to the own window instance
  45. *          transformed_size:  shall be entered into GEM-object
  46. * OUTPUT:  refreshed GEM-object 
  47. *******************************************************************/
  48.  
  49. /*******************************************************************
  50. */
  51.     unsigned int get_number_of_tracks(Awindow *) ;
  52. /* 
  53. * INPUT:   window:      pointer to the own window instance
  54. * RETURN:  number of tracks in MIDI file
  55. *******************************************************************/
  56.  
  57. /*******************************************************************
  58. */ 
  59.     int get_ticks_per_beat(Awindow *window) ;
  60. /* 
  61. * INPUT:   window:  pointer to own window instance
  62. * RETURN:  ticks per quarter in MIDI file
  63. *******************************************************************/
  64.  
  65. /*******************************************************************
  66. */
  67.     int get_SMPTE(Awindow *window) ;
  68. /* 
  69. * INPUT:   window:  pointer to the window to serve
  70. * RETURN:  0:       (FALSE) if "ticks per quarter" format
  71. *          1:       (TRUE) if SMPTE format
  72. *******************************************************************/
  73.